package com.hww.lcnclient2.service;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: Wenwu Huang
 * @Date: 2019/4/29 11:18
 */
@Service
public class ServiceB {

    @Autowired
    private ServiceA serviceA;

    @LcnTransaction
    @Transactional  //本地事务注解
    public String rpc(String value) {
        serviceA.getUser();

        return "ok-B";
    }
}
